#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;

void test6()
{
	vector<int> s;
	s.push_back(1);
	s.push_back(20);
	s.push_back(30);
	s.push_back(4);
	s.push_back(5);
	s.push_back(5);
	vector<int>::iterator it = s.begin();
	while (it != s.end())
	{	
    if(*it%2==0)
		s.erase(it);
		it++;
	}
	for (auto num : s)
	{
		cout << num << ' ';
	}
	cout << endl;
}



int main()
{
	test6();
	return 0;
}
